package com.neusoft.nep.entity;

import java.io.Serializable;

public class User implements Serializable {
    private String phoneNumber;
    private String userName;
    private String password;
    private String gender;
    private String dateOfBirth;


    public String getDataOfBirth() {
        return dateOfBirth;
    }

    public void setDataOfBirth(String dataOfBirth) {
        this.dateOfBirth = dataOfBirth;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getPhoneNumber() {
        return phoneNumber;
    }

    public void setPhoneNumber(String phoneNumber) {
        this.phoneNumber = phoneNumber;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public User(String dateOfBirth, String gender, String password, String phoneNumber, String userName) {
        this.dateOfBirth = dateOfBirth;
        this.gender = gender;
        this.password = password;
        this.phoneNumber = phoneNumber;
        this.userName = userName;
    }
    // 在 User.java 中
    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        User user = (User) o;
        return this.phoneNumber.equals(user.phoneNumber);
    }
}
